@import '@/assets/styles/variables.module.scss';
.content-layout {
  background-color: #fafafa;
  padding: 24px 15px 52px 24px;
}
.floorInfo {
  display: flex;
  padding: 20px 0 0;

  ul {
    flex: 1;
    display: flex;

    li {
      padding-right: 30px;
      display: flex;
      align-items: center;
      color: var(--color-bk2);
    }
  }
}

.houseList {
  display: flex;
  padding-top: 16px;
  flex-wrap: wrap;
  margin-left: -20px;
  .item {
    box-shadow: 0 2px 12px 0 #93939333;
    border-radius: 2px;
    margin-left: 20px;
    padding: 14px;
    margin-bottom: 20px;
    width: calc(50% - 20px);
    display: inline-block;
  }

  .title {
    display: flex;

    .lText {
      display: flex;
      align-items: center;
      color: var(--color-bk1);
      height: 25px;
      flex: 1;
    }

    .icon {
      display: flex;
      align-items: center;

      span {
        cursor: pointer;
        display: inline-block;
        width: 20px;
        height: 20px;
        margin-left: 4px;
        border-radius: 3px;
        &:hover {
          background-color: #f0f7f5;
        }
        &:active {
          background-color: #d2e8e1;
        }
        &.forbidDelect {
          &:hover,
          &:active {
            background-color: transparent;
          }
        }
      }
    }

    span {
      cursor: pointer;

      &.add {
        display: inline-block;
        width: 24px;
        height: 24px;
      }

      &.num {
        background: $--color-aux5;
        border-radius: 7.6px 1px 7.6px 1px;
        margin-right: 5px;
        font-size: 10px;
        line-height: 18px;
        padding: 0 4px;
        margin-left: 10px;
      }

      &.name {
        font-size: 18px;
        font-weight: 500;
      }
    }
  }

  .bedList {
    ul {
      display: flex;
      margin-left: -12px;
      flex-wrap: wrap;
      .unusual {
        border: 1px solid #e34d59;
        background: #fcf8f8 !important;
      }
      li {
        margin: 14px 0 0 12px;
        line-height: 22px;
        padding: 14px;
        display: flex;
        width: calc(50% - 12px);
        color: $--color-bk3;
        position: relative;
        border-radius: 2px;

        &.leisure {
          background: #f5f5f5;
        }

        &.checkIn {
          background: #f6fbfa;
        }

        &.goOutIcon {
          background: #fcfbf4;
        }

        .bedHover {
          opacity: 1;
          position: absolute;
          left: 0;
          right: 0;
          top: 0;
          bottom: 0;
        }

        &:hover {
          .bedHover {
            background: rgba(0, 0, 0, 0.3);
            display: flex;
            align-items: center;
            justify-content: center;

            span {
              cursor: pointer;
              background-color: #f6fbfa;
              display: inline-block;
              width: 22px;
              height: 22px;
              border-radius: 50%;
              margin: 0 7px;
            }
          }
          .bedNoHover {
            display: none;
          }
        }
        .radio {
          position: absolute;
          right: -8px;
          top: -5px;
        }
      }
    }
    .noCare {
      span {
        padding: 0 !important;
        background-color: transparent !important;
        color: #999 !important;
        font-size: 14px;
      }
    }
  }
  
}
.dialogHeight {
  height: 433px;
}

.heighta {
  height: 383px;
}
.liveInBox {
  .tableBoxs {
    margin: 0;
  }
}
/* 当页面宽度是最小1580.最大1740的时候例表的搜索表单改变列表宽度，暂时一行最多4个 + 按钮 */
@media screen and (min-width: 1605px) and (max-width: 2051px) {
  .houseList {
    .item {
      width: calc(33.3% - 20px);
    }
  }
}
.noData {
  text-align: center;
  color: $--color-bk6;
  padding: 50px 0;
}
.dialogBox {
  &.roomDialog {
    .t-dialog {
      .t-table {
        height: 390px;
      }
    }
    .noData {
      padding: 0;
      img {
        margin-top: 30px;
      }
      p {
        margin-bottom: 0;
      }
    }
  }
}
.configTpye {
  &:hover {
    .bedHover {
      display: none;
    }
  }
}
.headBox {
  border-bottom: 1px solid #e8e8e8;
  line-height: 22px;
  position: relative;
  padding-top: 10px;
  padding-right: 80px;
  .sw-box {
    font-family: PingFangSC-SNaNpxibold;
    font-weight: 400;
    font-size: 16px;
    color: $--color-black;
    // height: 22px;
    // // 超过分辨率宽度给元素添加横向滚动条
    // overflow: hidden;
    // height: 36px;
    // overflow-x: auto;
    // white-space: nowrap;
    // // 滚动条样式
    // &::-webkit-scrollbar {
    //   height: 8px;
    //   background: #fafafa;
    // }

    // &::-webkit-scrollbar-thumb {
    //   border-radius: 4px;
    //   border: 2px solid transparent;
    //   background-clip: content-box;
    //   background-color: var(--color-border);
    // }
    &.configTpye .title {
      &:hover {
        i {
          display: none;
        }
      }
    }
    .title {
      color: $--color-black;
      font-size: 14px;
      text-align: center;
      display: inline-block;
      // max-width: 85px;
      // min-width: 64px;
      width: auto;
      padding: 12px 20px;
      //  文字左右居中
      text-align: center;
      cursor: pointer;
      position: relative;
      &:hover {
        color: $--color-link;
        i {
          position: absolute;
          display: inline-block;
          width: 16px;
          height: 16px;
          // margin-left: 0px;
          top: 14px;
          z-index: 9;
        }
        .delect {
          right: -2px;
        }
        .edit {
          right: -2px;
        }
      }
    }
    .line {
      color: $--color-link;
      font-weight: 500;
      position: relative;
      cursor: pointer;
      &::before {
        position: absolute;
        left: 50%;
        transform: translate(-50%);
        content: '';
        width: 100%;
        height: 2px;
        border-radius: 4px;
        bottom: 0px;
        background: $--color-link;
      }
    }
  }
  .rText {
    position: absolute;
    right: 0;
    top: 20px;
    color: $--color-link;
    font-size: 14px;
    cursor: pointer;
  }
}
// icon
.bedIcon {
  span {
    margin-right: 10px;
    display: inline-block;
    width: 26px;
    height: 26px;
  }
}
.leisureIcon {
  background: url(@/assets/images/icon-kxz.png) no-repeat;
  background-size: contain;
}

.checkInIcon {
  background: url(@/assets/images/icon-yrz.png) no-repeat;
  background-size: contain;
}

.goOutIcon {
  background: url(@/assets/images/icon-wcz.png) no-repeat;
  background-size: contain;
}
.edit {
  background: url(@/assets/icons/icon-bj.png) no-repeat;
  background-size: contain;
}

.delect {
  background: url(@/assets/icons/icon-delete.png) no-repeat;
  background-size: contain;
}

.forbidDelect {
  // background: url(@/assets/icon-delete-jy.png) no-repeat;
  background-size: contain;
  opacity: 0.4;
}

.check {
  background: url(@/assets/icons/icon-ck.png) no-repeat;
  background-size: contain;
}

.add {
  background: url(@/assets/icons/btn-xj.png) no-repeat;
  background-size: contain;

  &:hover {
    background: url(@/assets/icons/btn-xj-hover.png) no-repeat;
    background-size: contain;
  }

  &:active {
    background: url(@/assets/icons/btn-xj-active.png) no-repeat;
    background-size: contain;
  }
}
.dialog-form {
  .el-dialog {
    width: 628px;
  }
  .dialogCenter{
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    position: relative;
    padding-bottom: 40px;
  }
}
.roomDialog {
  .t-table--column-fixed .t-table__cell--fixed-right {
    min-width: 80px;
  }

  .t-form__controls-content {
    display: block !important;
    line-height: 32px;
  }

  .t-table {
    &.lastTable tr {
      &.t-table__last-full-row {
        display: none;
      }
    }

    .t-table--full-height {
      height: auto;
    }
  }

  .t-dialog .t-form {
    padding-bottom: 4px !important;
  }
}
.dialogBox {
  &.roomDialog{
     .t-dialog {
         .t-table {
             height: 390px;
         }
         
     }
     .noData{
         padding: 0;
         img{
             margin-top: 30px;
         }
         p{
             margin-bottom: 0;
         }
     }
     
 }
 .dialogHeight {
  height: 433px;
}
}
